const state = {
  isShowQRcode: false // 判断显示二维码还是显示其他状态icon
}

const getters = {
  isShowQRcode: state => state.isShowQRcode
}

const actions = {
  fetchIsShowQRcode: ({ commit, state }, text) => {
    commit('updateIsShowQRcode', text)
  }
}

const mutations = {
  updateIsShowQRcode: (state, payload) => {
    state.isShowQRcode = payload
  }
}

export default {
  state,
  getters,
  actions,
  mutations
}
